package cn.com.ebidding.spc.service;

import cn.com.ebidding.spc.common.CommonResult;
import cn.com.ebidding.spc.common.PaymentInfoVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * Created on 2020/10/12.
 *
 * @author qiyang.
 * 描述：
 */
@Component
@FeignClient(value = "SPC-PROVIDER-SERVICE")
public interface PaymentFeignService {

    @GetMapping(value = "/payment/get/{id}")
    CommonResult<PaymentInfoVo> getPaymentById(@PathVariable("id") Long id);

}
